/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.Command;

/**
 *
 * @author Alumno
 */
public class ApagarServer implements Command{

    public IServer servidor;
    
    public void ApagarServer(IServer servidor){
        this.servidor = servidor;
    }
    @Override
    public void execute() {
        servidor.conectar();
        servidor.verificarConexion();
        servidor.guardarLog();
        servidor.apagar();
        servidor.cerrarConexion();
        
    }
    
}
